//
//  Purchase+Enum.swift
//  PurchaseManager
//
//  Created by TSYH on 2024/5/16.
//

import Foundation

public extension Notification.Name {
    static let premiumProductDataPrepared = Self.init("premiumProductDataPrepared")
    static let premiumStateDidChanged = Self.init("premiumStateDidChanged")
}

extension String {
    static let premiumExpiredTime = "premiumExpiredTimeKey"
    static let premiumExpiredInfo = "premiumExpiredInfoKey"
}

public enum PremiumPeriod: String, CaseIterable {
    case none           = ""
    case month          = "Monthly"
    case year           = "Yearly"
    case lifetime       = "Lifetime"
}

public enum PremiumRequestState {
    case none
    
    case loading
    case loadSuccess
    case loadFail
    
    case paying
    case paySuccess
    case payFail
    
    case restoreing
    case restoreSuccess
    case restoreFail
    
    case verifying
    case verifySuccess
    case verifyFail
}
